﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Gin.Commands
{
    public class SaveConstant: Command
    {

        [GinArgumentText(Multiline = false, MaxLength = 500)]
        public string ResultName { get; set; }

        [GinArgumentText(Multiline = false, MaxLength = 500)]
        public object Value { get; set; }

        public override void Do(ExecutionContext context)
        {
            context.SaveResult(ResultName, Value);
        }
    }
}
